package com.ln.lnzw.utils;

import android.content.Context;
import android.util.Log;
import android.view.View;
import android.widget.LinearLayout;

import com.blankj.utilcode.util.BarUtils;

import static com.blankj.utilcode.util.BarUtils.getStatusBarHeight;

/**
 * Created by wuwei on 2018/4/17.
 */

public class StatusBarUtils {

    public static void statusBar(View view) {
        LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) view.getLayoutParams();
        layoutParams.height = BarUtils.getStatusBarHeight();
        Log.i("123", "onViewCreated: "+layoutParams.height);
        view.setLayoutParams(layoutParams);
    }
}
